<template>
    <view class="scLoadMore">
        <LoadMore :status="status" mode="loading2" color="#999999" textColor="#999999" textSize="28rpx" v-if="dataLength !== 0 && !loading"/>
        <NoMore :title="NoMoreTitle" v-if="dataLength === 0 && !loading"></NoMore>
    </view>
</template>

<script>
export default {
    name: "scLoadMore",
    props: {
        status: {
            type: String,
            default: 'down'
        },
        loading:{
            type:Boolean,
            default:true
        },
        //数据长度
        dataLength: {
          type: Number,
          default: 0
         },
        NoMoreTitle:{
            type: String,
            default: ''
        }
    },
    data() {
        return {}
    },
}
</script>
<style lang='scss' scoped>
.scLoadMore {
}
</style>
